package com.jyu.apts.dao;

import java.util.List;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.jyu.apts.entity.Role;

@Repository
public interface RoleRepository extends JpaRepository<Role, Long> {
	public Role findByName(String name);
	public Role findByStringRole(String stringRole);
	public List<Role> findAll(Specification<Role> spec,Sort sort);
}
